Typed queries topic

A query declared once, with its key, its data type and its fetch function. QueryDefinition and QueryFamily (and InfiniteQueryDefinition, InfiniteQueryFamily for paged data) hand out a QueryRef per cache entry, which gives the options for an observer and reads, writes and invalidates with the declared type; a QueryNamespace groups them under a key prefix, and all of them are a QueryTarget.

Classes

InfiniteQueryDefinition<TPageData, TPageParam> Typed queries
An infinite query with no varying input, such as "the feed": the definition is itself the InfiniteQueryRef.
InfiniteQueryFamily<TInput, TPageData, TPageParam> Typed queries
One infinite query over a varying input, such as "the posts of this author". Calling it with an input returns the InfiniteQueryRef of that input's entry.
InfiniteQueryRef<TPageData, TPageParam> Typed queries
A reference to one cache entry of an infinite query: an infinite definition bound to its input.
QueryDefinition<T> Typed queries
A plain query with no varying input, such as "all devices": the definition is itself the QueryRef.
QueryEntryRef<T> Typed queries
One cache entry and the data type it holds: what a QueryRef and an InfiniteQueryRef have in common.
QueryFamily<TInput, T> Typed queries
One query over a varying input, such as "the device with this id". Calling it with an input returns the QueryRef of that input's entry.
QueryNamespace Typed queries
A key prefix that groups query definitions, such as everything about devices.
QueryRef<T> Typed queries
A reference to one cache entry of a plain query: a definition bound to its input.
QueryTarget Typed queries
What a cache operation is aimed at: one entry (a QueryRef or an InfiniteQueryRef), every input of one operation (a QueryFamily or an InfiniteQueryFamily) or everything under a key prefix (a QueryNamespace).
TypedQueryKey<T> Typed queries
A QueryKey that remembers the data type cached under it.